#include "qnewbutton.h"
#include <QPixmap>

QNewButton::QNewButton(QWidget *parent) : QPushButton(parent)
{

}




//void QNewButton::mouseReleaseEvent(QMouseEvent *event)
//{
//    QPixmap pixmap(":/Image/Util/light1.png");
//     this->setIcon(pixmap);
//    QSize size(50,50);
//    this->setIconSize(size);
//    QPushButton::mouseMoveEvent(event);
//}

void QNewButton::enterEvent(QEvent *event)
{QPixmap pixmap(":/Image/Util/light12.png");
    this->setIcon(pixmap);
   QSize size(60,60);
   this->setIconSize(size);
   QPushButton::enterEvent(event);

}

void QNewButton::leaveEvent(QEvent *event)
{
    QPixmap pixmap(":/Image/Util/light1.png");
     this->setIcon(pixmap);
    QSize size(50,50);
    this->setIconSize(size);
QPushButton::leaveEvent(event);
}
